entry {
    ui::interact-with-window {
        title: { const 'Select Demo' },
        content: Root,
        assets: [StyleSheet],
        on-close: { Some { sys::exit 0 } }
    }
};
asset StyleSheet: AssetCSS 'assets/style.css';

const Root: ui::Component
    \ use let selection := { ui::State::[String] 'foo' },
    { { ui::Box [] } [
        { { ui::Box ['row'] } [
            { ui::Select (selection, [('foo','Foo'),('bar','Bar'),('42','42')]) },
            { ui::Text selection.out }
        ] },
        { ui::Button ('reset', (selection.in <- 'foo')) }
    ] };
